package com.dsy.controller;

import com.dsy.result.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController("/desktop")
public class DesktopController {
    /**
     * 语音控制
     *
     * @param file 用户的语音文件
     * @return 指令已发送，请等候响应
     */
    @PostMapping("/voiceControl")
    public Result<String> voiceControl(MultipartFile file) {
        return Result.success("指令已发送，请等候响应");
    }
}
